import request from '@/api/utils/request';
import {
  getDocumentLibraryList,
  documentToArchive,
  documentToAbandon,
  documentToDelete,
  getArchivedList,
  documentLabelList,
  documentLabelListNoPage
} from '../api.js';
class Interface {
  static GetDocumentLibraryList = data => {
    return request({
      url: getDocumentLibraryList,
      method: 'post',
      data
    });
  };

  static DocumentToAbandon = data => {
    return request({
      url: documentToAbandon,
      method: 'post',
      data
    });
  };
  static DocumentToArchive = params => {
    return request({
      url: documentToArchive,
      method: 'get',
      params
    });
  };
  static DocumentToDelete = params => {
    return request({
      url: documentToDelete,
      method: 'get',
      params
    });
  };
  static DocumentLabelList = data => {
    return request({
      url: documentLabelList,
      method: 'post',
      data
    });
  };
  static DocumentLabelListNoPage = data => {
    return request({
      url: documentLabelListNoPage,
      method: 'post',
      data
    });
  };
  static GetArchivedList = data => {
    return request({
      url: getArchivedList,
      method: 'post',
      data
    });
  };
}
export { Interface };
